More notes<->description fallout. Sigh.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 27 Nov 2002 23:10:13 +0000 (23:10 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 27 Nov 2002 23:10:13 +0000 (23:10 +0000)
gpsbabel/csv.c

index e3d9cc01950ec336fa099f59fff41e72742225c8..b2141d9c39ed06228ab8c57646e51fd70043e07f 100644 (file)
@@ -146,6 +146,9 @@ csv_waypt_pr(const waypoint *wpt)
         if (wpt->description) 
            description = csv_stringclean(wpt->description, ",\"");
 
+       if ((description == NULL) && wpt->notes)
+           description = csv_stringclean(wpt->notes, ",\"");
+
        fprintf(file_out, "%08.5f, %08.5f, %s\n",
                lat,
                lon,